package com.thinkbig.datamining.decisiontree;

import java.util.Random;

import com.thinkbig.datamining.decisiontree.PropDefine.AGE;
import com.thinkbig.datamining.decisiontree.PropDefine.BUY;
import com.thinkbig.datamining.decisiontree.PropDefine.EDUCATION;
import com.thinkbig.datamining.decisiontree.PropDefine.GENDER;
import com.thinkbig.datamining.decisiontree.PropDefine.SALARY;
import com.thinkbig.datamining.decisiontree.PropDefine.SINGLE;



public class Person {
   
    public static String[] getData() {
        String[] rtn = new String[6];
        Random random = new Random(System.currentTimeMillis());
        int num = Math.abs(random.nextInt());
        rtn[0] = String.valueOf(AGE.values()[num % AGE.values().length]);
        rtn[1] = String.valueOf(EDUCATION.values()[num % EDUCATION.values().length]);
        rtn[2] = String.valueOf(SALARY.values()[num % SALARY.values().length]);
        rtn[3] = String.valueOf(GENDER.values()[num % GENDER.values().length]);
        rtn[4] = String.valueOf(SINGLE.values()[num % SINGLE.values().length]);
        rtn[5] = String.valueOf(BUY.values()[num % BUY.values().length]);
        return rtn;

    }
}
